package fei.zhou.dao;

import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import fei.zhou.bean.Article;

import java.util.List;

public interface ArticleDao extends ElasticsearchRepository<Article, Long> {
    List<Article> findByTitle(String title);
    List<Article> findByTitleOrContent(String title, String content);

    List<Article> findByTitle(String title,   Pageable pageable);
}
